﻿using System.ComponentModel.DataAnnotations;

namespace BCDto.TMS.FreightAddress
{
    /// <summary>
    /// 货运常用地址请求模型
    /// </summary>
    public class FreightAddressRequestDto
    {
        /// <summary>
        /// 省份编码
        /// </summary>
        [Display(Name = "省份编码")]
        [Required(ErrorMessage = "省份编码为必填项")]
        public string ProvinceCode { get; set; }

        /// <summary>
        /// 城市编码
        /// </summary>
        [Display(Name = "城市编码")]
        [Required(ErrorMessage = "城市编码为必填项")]
        public string CityCode { get; set; }

        /// <summary>
        /// 区县编码
        /// </summary>
        [Display(Name = "区县编码")]
        [Required(ErrorMessage = "区县编码为必填项")]
        public string CountyCode { get; set; }

        /// <summary>
        /// 地址信息
        /// </summary>
        [Required(ErrorMessage = "地址信息为必填项")]
        public string Address { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [Required(ErrorMessage = "经度为必填项")]
        public double Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        [Required(ErrorMessage = "纬度为必填项")]
        public double Latitude { get; set; }

        /// <summary>
        /// 常用联系人Id
        /// </summary>
        [Required(ErrorMessage = "常用联系人为必填项")]
        public long FreightContactId { get; set; }
    }
}